package com.oocl.service;

import java.util.List;

import com.oocl.entity.DeliverInfo;
import com.oocl.entity.Foods;
import com.oocl.entity.Orders;
import com.oocl.entity.SessionInfo;
import com.oocl.vo.OrdersVo;

public interface OrdersService {
	
	//添加订单，返回订单的oid
	public String addOrderList(DeliverInfo deliverInfo, String icnum,String cid,List<SessionInfo> flist);
	
	//根据订单id返回订单列表
	public List<Orders> loadOrdersByOid(String oid);
	
	//根据订单id返回配送信息
	public DeliverInfo loadDeliverInfoByOid(String oid);
	
	//添加订单评论-到另一个controller，用户评论controller
	
	public List<Orders> loadOrdersByCid(String cid);
	
	List<Orders> getAlls();

	List<Orders> getByStatus(String state);
	
	public List<Orders> updateOrderStatus(String oid,String ostate);
	
	public List<OrdersVo> loadOrderCenter(String cid);
	
	public List<OrdersVo> loadOrderCenterBystatus(String status,String cid);
	
	public List<Orders> updateComplaintStatusByOid(String oid);
	
	void update(Orders order);
}
